import request from "@/utils/request";

// 查询学习题库列表
export function listQuestionBank(query) {
  return request({
    url: "/question-bank/listPage",
    method: "get",
    params: query,
  });
}

// 查询学习题库详细（根据Id查询单个）
export function getQuestionBankById(query) {
  return request({
    url: "/question-bank/selectOne",
    method: "get",
    params: query,
  });
}

// 导入学习题库
export function importQuestionBank(data) {
  return request({
    url: "/question-bank/importData",
    method: "post",
    data: data,
  });
}

// 删除学习题库
export function delQuestionBank(Id) {
  return request({
    url: "/question-bank/delete/" + Id,
    method: "delete",
  });
}
